package com.java.service;

import com.java.pojo.entity.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;

/**
 * <p>
 * 数据字典 服务类
 * </p>
 *
 * @author Helen
 * @since 2021-07-08
 */
public interface DictService extends IService<Dict> {

    //数据字典
    List<Dict> getDicts(Long id);

    void export(HttpServletResponse response);

    void importExcel(InputStream inputStream);

    List<Dict> getDictsByDictCode(String dictCode);

    String  getNameByParentDictCodeAndValue(String dictCode,Integer value);
}
